]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
weather: Adjust to renamed provider
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 12 Jan 2021 16:30:16 +0000 (17:30 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 13 Jan 2021 21:03:35 +0000 (21:03 +0000)
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3577

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1565>

js/misc/weather.js

index 97880ea91eb4436f18e4066e8be0d8a3fe0a20d2..0c293bf253ec8501a305c981efc21bd38af0081e 100644 (file)
@@ -68,9 +68,10 @@ var WeatherClient = class {
 
         this._world = GWeather.Location.get_world();
 
-        let providers = GWeather.Provider.METAR |
-                        GWeather.Provider.YR_NO |
-                        GWeather.Provider.OWM;
+        const providers =
+            GWeather.Provider.METAR |
+            GWeather.Provider.MET_NO |
+            GWeather.Provider.OWM;
         this._weatherInfo = new GWeather.Info({ enabled_providers: providers });
         this._weatherInfo.connect_after('updated', () => {
             this._lastUpdate = GLib.DateTime.new_now_local();